package com.hsylient.javase.chapter01;

import org.junit.Test;

public class MyLong {
    public void constantTest() {
        System.out.println("long类型占空间大小(字节)：" + Long.BYTES);
        System.out.println("long类型占空间大小(bit)：" + Long.SIZE);
        System.out.println("long类型的最大值：" + Long.MAX_VALUE);
        System.out.println("long类型的最小值：" + Long.MIN_VALUE);
    }


    @Test
    public void testInter2Long() {
        Integer a = 1;
//        Long b = (Long) a;

        Long b = a.longValue();
        System.out.println(b);
    }
}
